package org.tlipoca.smchannel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.genntii.smcommon.result.PageResult;
import org.genntii.smdomain.entity.Channel;
import org.genntii.smdomain.vo.ChannelVO;

import java.util.ArrayList;
import java.util.Map;

public interface ChannelService extends IService<Channel> {
    Boolean channelExistsService(Long channelId);

    Channel getChannelByAppIdService(Integer appid,Long userId);

    ChannelVO getChannelByIdService(Long channelId, Long userId);

    Channel getChannelById(Long channelId, Long userId);

    Map<Long, ChannelVO> getChannelListByIdsService(ArrayList<Long> channelIds, Long userId);

    ArrayList<Channel> getChannelBatch(ArrayList<Long> channelIds);

    ArrayList<ChannelVO> getChannelVOList();

    PageResult search(String keyword, int pageNum, int pageSize);
}
